/**
 * Created by Freeman on 2018/1/6.
 */
import React from 'react'
import { View,StyleSheet } from 'react-native'
import PropTypes from 'prop-types'
import { COLOR } from '../../config'

const Layout = ({children,style}) => {

  return (
    <View style={[styles.container,style]}>
      {children}
    </View>
  )
}

const styles = StyleSheet.create({
  container: {
    flex: 1,
    backgroundColor: COLOR.backgroundNormal
  }
})

Layout.propTypes = {
  style:PropTypes.oneOfType([
    PropTypes.object,
    PropTypes.number,
  ])
}

export default Layout
